package com.luoye.ct.service.impl;

import com.luoye.ct.client.IHiClient;
import com.luoye.ct.service.IHelloService;
import com.luoye.ct.service.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/6/2.
 */
@Service
public class HelloServiceImpl implements IHelloService {

    @Autowired
    private IHiClient hiClient;

    public UserInfo say(String name) {
        UserInfo userInfo=new UserInfo();
        userInfo.setUserId(0);
        userInfo.setUserName(hiClient.say(name));
        return userInfo;
    }
}
